package org.tools.wstt.reference;

public interface ApplicationComponent {

	String APP_CONFIG_PREDEF_FILE = "wstt-config.properties";
	
	String APP_VERSION_FILE = "wstt-version.properties";
	
	String APP_CONFIG_BUILD_DATE = "build.date";
	
	String APP_CONFIG_BUILD_VERSION = "build.version";
	
	String APP_CONFIG_PROXY_DEST_HOST = "destHost";
	
	String APP_CONFIG_PROXY_DEST_PORT = "destPort";

	String APP_RESPONSES_MAPS = "responsesMap";
	
	String APP_PROBE_RESULTS = "PROBE_CALLS";
	
	String APP_REQUEST_RESULTS = "REQUEST_CALLS";
	
	String APP_PROXY_CALLS = "PROXY_CALLS";
	
	String APP_PROXY_CALLS_TOTAL_COUNT = "PROXY_CALLS_COUNT";
	
	String APP_PROXY_CALLS_TOTAL_TIME = "PROXY_CALLS_TIME";
	
	int APP_PROXY_REMIND_CALLS = 50;
	
	int APP_PROBE_REMIND_CALLS = 50;
	
	int APP_REQUEST_REMIND_CALLS = 100;
	
	String URI_TOOLS = "/tools";
	
	String URI_SERVICES = "/services";
	
	String URI_PROXY_MANAGE = URI_SERVICES + "/proxyManage";
	
	String URI_RESP_MANAGE = URI_SERVICES + "/responseManage";
	
	String URI_FETCH_URL = URI_SERVICES + "/fetchUrl";
	
	String URI_PROBE = URI_SERVICES + "/probe";
	
	String URI_VERSION = "/version";
	
	String INTERNAL_PATH_OF_JSPS = "/WEB-INF/jsp";
	
	String INTERNAL_PATH_FOR_PROXYING = URI_SERVICES + "/proxy";
	
	Long APP_PROBE_DEF_TIMEOUT_MS = new Long(2000);

	/** The Constant STATUT_NOT_RUN. */
	int APP_PROBE_STATUT_NOT_RUN = -1;
	
	/** The Constant STATUT_OK. */
	int APP_PROBE_STATUT_OK = 0;

	/** The Constant STATUT_NO_SERVICE. */
	int APP_PROBE_STATUT_NO_SERVICE = 1;

	/** The Constant STATUT_KO. */
	int APP_PROBE_STATUT_KO = 2;
}
